<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>校园生活</title>
    <link rel="stylesheet" >
</head>
<body>
<header>
    <nav>
        <ul class="catalog">
            <li><a href="首页.html">首页</a></li>
            <li><a href="我的历程.html">我的历程</a></li>
            <li><a href="登录.html">登录</a></li>
        </ul>
    </nav>
</header>
        <div class="carousel-item">
            <img src="images/轮播图1.jpg" alt="Image 1">
        </div>

<main>
    <section class="gallery">
        <h2>大学生活</h2>
        <div class="image-grid">
            <div class="image-item">
                <img src="images/体育场.jpg" alt="体育场">
                <p>体育场</p>
            </div>
            <div class="image-item">
                <img src="images/冬景.jpg" alt="冬景">
                <p>冬景</p>
            </div>
            <div class="image-item">
                <img src="images/黄昏.jpg" alt="黄昏">
                <p>黄昏</p>
            </div>
            <div class="image-item">
                <img src="images/食堂.jpg" alt="食堂">
                <p>食堂</p>
            </div>
            <div class="image-item">
                <img src="images/校门.jpg" alt="校门">
                <p>校门</p>
            </div>
            <div class="image-item">
                <img src="images/图书馆.jpg" alt="图书馆">
                <p>图书馆</p>
            </div>
        </div>
    </section>

    <section class="message-board">
        <h2>留言板</h2>
        <form action="空白页.html" acmethod="post">
            <input type="text" name="message" placeholder="留言内容"></input>
            <input type="text" name="name" placeholder="昵称">
            <input type="text" name="contact" placeholder="联系方式">
            <button type="submit">提交</button>
        </form>
    </section>
</main>

<footer>
    <p>我的大学生涯</p>
</footer>
</body>
</html>

<style>
    body, h1, h2, p, ul, li {
        margin: 0;
        padding: 0;
    }

    body {
        font-family: Arial, sans-serif;
        background-color: #f0f0f0;
    }

    header {
        background-color: #333;
        color: #fff;
        padding: 10px 0;
    }
    header .catalog{
        position: relative;
        left:-100px;

    }
    nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        justify-content: center;
    }

    nav li {
        margin: 0 10px;
    }

    nav a {
        color: #fff;
        text-decoration: none;
        padding:5px 10px;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    nav a:hover {
        background-color: #444;
    }

    .carousel-item img {
        width: 1800px;
        height: 400px;
        display: block;
    }


    .banner h1 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2em;
        margin: 0;
    }

    main {
        padding: 20px;
    }

    .gallery h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .image-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .image-item {
        margin: 10px;
        text-align: center;
    }

    .image-item img {
        width: 200px;
        height: auto;
        display: block;
    }

    .message-board {
        margin: 40px 0;
        text-align: center;
    }

    .message-board h2 {
        margin-bottom: 20px;
    }

    .message-board form {
        display: inline-block;
        text-align: left;
    }

    .message-board textarea {
        width: 300px;
        height: 100px;
        margin-bottom: 10px;
        padding: 10px;
    }

    .message-board input {
        width: 300px;
        padding: 10px;
        margin-bottom: 10px;
    }

    .message-board button {
        width: 100%;
        padding: 10px;
        background-color: #333;
        color: white;
        border: none;
        cursor: pointer;
    }

    footer {
        background-color: #333;
        color: white;
        text-align: center;
        padding: 10px 0;
    }

</style>